﻿<%@ Page Language="C#" MasterPageFile="~/Manager/Manager.Master" AutoEventWireup="true"
    Theme="cvkadmin" CodeBehind="ManStaffGroupContacts.aspx.cs" Inherits="BatDongSan.Manager.ManStaffGroupContacts" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div>
        <div style="float: left">
        </div>
        <div style="padding: 0px 10px 0px 0px;" align="right">
            <asp:Label ID="lbStatus" runat="server" Font-Italic="True" ForeColor="#FF3300"></asp:Label>
            <asp:LinkButton ID="LinkButton1" CssClass="linkbutton" Font-Size="Larger" PostBackUrl="~/Manager/ManStaffs.aspx"
                runat="server">Danh sách (Thành viên)</asp:LinkButton>
        </div>
    </div>
    <br />
    <div style="float: none">
        <asp:GridView ID="grvStaff" runat="server" AutoGenerateColumns="False" CssClass="TMain"
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" GridLines="Vertical" Width="100%"
            OnRowDataBound="grvStaff_RowDataBound" EmptyDataText="Chưa có thành viên, Bạn vào [Nhân viên] -> [Danh sách] -> Chọn Nhóm & [Add]" >
            <RowStyle CssClass="TItem" />
            <EmptyDataRowStyle CssClass="THeader"  />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="StaffId" InsertVisible="False" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="lblStaffId" runat="server" Text='<%# Bind("StaffId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Họ Tên" SortExpression="Name">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:BoundField DataField="Email" HeaderText="Email" HeaderStyle-HorizontalAlign="Left"
                    SortExpression="Email">
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:BoundField>
                <%--<asp:BoundField DataField="NickName" HeaderText="NickName" SortExpression="NickName">
                    <ItemStyle Width="100px" />
                </asp:BoundField>--%>
                <asp:BoundField DataField="Username" HeaderText="Login">
                    <ItemStyle Width="90px" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Thứ tự">
                    <ItemTemplate>
                        <asp:TextBox ID="txtPosition" runat="server" Width="50" />
                    </ItemTemplate>
                    <ItemStyle Width="50px"></ItemStyle>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Denied">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtDenied" Font-Bold="true" Font-Underline="false" runat="server"
                            CausesValidation="False" OnClick="lnkbtDenied_Click"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="TFooter" />
            <PagerStyle CssClass="TFooter" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle CssClass="THeader" />
            <AlternatingRowStyle CssClass="TItemA" />
        </asp:GridView>
    </div>
    <div style="text-align: right; padding-top: 5px;">
        <asp:Button ID="btnPosition" runat="server" CssClass="linkbutton" Text="Cập nhật vị trí"
            OnClick="btnPosition_Click" />
    </div>
    <div style="font-weight: bold; margin-top: 5px;">
        Ghi chú:</div>
    <div style="margin-left: 10px;">
        <div style="margin-left: 20px;">
            <table border="0" cellpadding="2" cellspacing="2">
                <tbody>
                    <tr>
                        <td>
                            <span style="font-weight: bold; color: Red;">Huỷ </span>
                        </td>
                        <td>
                            Huỷ thành viên ra khỏi nhóm này
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
